package com.game.framework.dao.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

@Data
@TableName( value ="user_info" )
public class UserInfoEntity extends BaseEntity<String> {

    @TableField(value = "tenant_id")// 属租户 1
    private String tenantId = "";

    @TableField(value = "phone")// 手机号码
    private String phone = "";

    @TableField(value = "password")// 密码
    private String password = "";

    @TableField(value = "nick_name")// 昵称
    private String nickName = "";

    @TableField(value = "real_name")// 姓名
    private String realName = "";

    @TableField(value = "person_sign")// 个性签名
    private String personSign = "";

    @TableField(value = "sex")// 性别（1：男，2：女，0：未知
    private int sex = 0;

    @TableField(value = "headimg_url")// 头像
    private String headimgUrl = "";

    @TableField(value = "city")// 所在城市
    private String city = "";

    @TableField(value = "country")// 所在国家
    private String country = "";

    @TableField(value = "province")// 所在省份
    private String province = "";

    @TableField(value = "email")// 邮箱
    private String email = "";

    @TableField(value = "card_no")// 身份证号码
    private String cardNo = "";

    @TableField(value = "card_img1")// 身份证正面
    private String cardImg1 = "";

    @TableField(value = "card_img2")// 身份证背面
    private String cardImg2 = "";

    @TableField(value = "realed")// 实名认证 0未认证  1已认证
    private int realed = 0;

    @TableField(value = "parent_id")// 上级ID
    private String parentId = "";

    @TableField(value = "user_code")// 用户编码'
    private int userCode = 0;

    @TableField(value = "invitation_code")// 邀请码
    private String invitationCode = "";

    @TableField(value = "app_type")// 来源应用（MA：小程序；H5：普通H5；H5-WX：微信H5；APP：app；H5-PC：PC端H5）
    private String appType = "";

    @TableField(value = "app_id")// 来源应用id
    private String appId = "";

    @TableField(value = "user_grade")// 用户等级（0：普通用户，1：普通会员
    private int userGrade = 0;

    @TableField(value = "points_current")// 当前积分
    private int pointsCurrent = 0;

    @TableField(value = "bank_card")// 银行卡号
    private String bankCard = "";

    @TableField(value = "bank_name")// 持卡人姓名
    private String bankName = "";

    @TableField(value = "bank_type")// 所属银行名称
    private String bankType = "";

    @TableField(value = "bank_card_type")// 银行卡片类型：1储蓄卡 2信用卡
    private int bankCardType = 0;

    @TableField(value = "brand_side")// 是否为品牌方: 0不是 1是
    private int brandSide = 0;

    @TableField(value = "ali_account")// 支付宝账号
    private String aliAccount = "";

    @TableField(value = "wallet_token")// 钱包地址:区块链钱包
    private String walletToken = "";

    @TableField(value = "version")// 版本号
    private int version = 0;

    @TableField(value = "create_time")// 创建时间
    private Date createTime = new Date();

    @TableField(value = "update_time")// 最后更新时间
    private Timestamp updateTime = new Timestamp(System.currentTimeMillis());

    @TableField(value = "del_flag")// 逻辑删除标记（0：显示；1：隐藏,
    private String delFlag = "";

    @TableField(value = "enable")// 用户状态（1：启用；0：禁用）
    private int enable = 0;
}
